package com.dimong.www.loan.ui;

import android.app.Activity;
import android.content.Intent;
import android.util.Log;

import com.dimong.www.loan.ui.act.ProdDetailedAty;
import com.dimong.www.loan.ui.act.ProdListActivity;
import com.dimong.www.loan.ui.act.WebViewAty;

/**
 * Created by wuligang on 2018/5/9.
 */

public class UIHelper {
    public static void gotoProdDetailed(Activity activity, String prod_id) {
        Intent intent = new Intent(activity, ProdDetailedAty.class);
        intent.putExtra("prod_id", prod_id);
        activity.startActivity(intent);
    }

    public static void openWebViewAty(Activity activity, String title, String url) {
        Intent intent = new Intent(activity, WebViewAty.class);
        intent.putExtra("title", title);
        intent.putExtra("url", url);
        activity.startActivity(intent);
    }

    public static void gotoProdListAty(Activity activity, String title, String classify_id) {
        Intent intent = new Intent(activity, ProdListActivity.class);
        intent.putExtra("title", title);
        intent.putExtra("classify_id", classify_id);
        activity.startActivity(intent);
    }
}
